package cn.topcodes.tcsf.wechat.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import java.util.Date;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 微信用户表单
 * @author unicorn
 * @date 2017-08-15 17:19:03
 */
@Data
public class WechatUserForm implements Idable {
	
	private Long id;

	@NotNull(message = "openId不能为空")
	@Length(min = 0,max = 100,message = "openId长度为0~100个字符")
	private String openId;
	
	@NotNull(message = "unionId不能为空")
	@Length(min = 0,max = 100,message = "unionId长度为0~100个字符")
	private String unionId;
	
	@NotNull(message = "关注状态不能为空")
	@Length(min = 0,max = 50,message = "关注状态长度为0~50个字符")
	private String subscribe;
	
	@NotNull(message = "昵称不能为空")
	@Length(min = 0,max = 100,message = "昵称长度为0~100个字符")
	private String nickname;
	
	@NotNull(message = "性别不能为空")
	@Length(min = 0,max = 45,message = "性别长度为0~45个字符")
	private String gender;
	
	@NotNull(message = "城市不能为空")
	@Length(min = 0,max = 45,message = "城市长度为0~45个字符")
	private String city;
	
	@NotNull(message = "国家不能为空")
	@Length(min = 0,max = 45,message = "国家长度为0~45个字符")
	private String country;
	
	@NotNull(message = "省份不能为空")
	@Length(min = 0,max = 45,message = "省份长度为0~45个字符")
	private String province;
	
	@NotNull(message = "语言不能为空")
	@Length(min = 0,max = 45,message = "语言长度为0~45个字符")
	private String language;
	
	@NotNull(message = "头像不能为空")
	@Length(min = 0,max = 200,message = "头像长度为0~200个字符")
	private String headImgUrl;
	
	@NotNull(message = "关注时间不能为空")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date subscribeTime;
	
	@NotNull(message = "备注不能为空")
	@Length(min = 0,max = 45,message = "备注长度为0~45个字符")
	private String remark;
	
	@NotNull(message = "用户组不能为空")
	@Length(min = 0,max = 45,message = "用户组长度为0~45个字符")
	private String groupId;
	
	@NotNull(message = "标签不能为空")
	@Length(min = 0,max = 45,message = "标签长度为0~45个字符")
	private String tagidList;
	

}